<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/10
  Time: 21:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>黄山学院-留学生信息管理系统</title>
    <link rel="stylesheet" href="/css/main_style.css">
    <script src="/js/main_function.js"></script>
    <script>
        function rePassword() {
            Ajax.post("/reSetPassword", formJson("rePassword"), function (result) {
                var results = JSON.parse(result);
                if (results.code == "100") {
                    alert("密码修改成功，请重新登录");
                    document.location.href = "/logout";
                } else {
                    alert(results.msg);
                }
            })
        }
    </script>
</head>
<body>
<div id="navigation">
    <div class="navigation-left"><img src="/img/school.png" style="width: 170px;height: 60px;"></img></div>
    <div class="navigation-center"><a>首页</a></div>
    <div class="navigation-right">
        <div class="drop-menu" style="float:right;">
            <div class="user-menu"></div>
            <div class="drop-menu-content">
                <a href="/logout">注销登录</a>
                <a href="/rePassword">修改密码</a>
            </div>
        </div>
    </div>
</div>
<div id="broadside">
    <div class="broadside-logo">

    </div>
    <div class="broadside-menu">
    </div>
</div>
<div id="content">
    <form id="rePassword">
        <p>原密码：<input type="password" name="old_password"></p>
        <p>新密码：<input type="password" name="new_password"></p>
    </form>
    <button type="button" onclick="rePassword()">确认修改</button>
</div>
</body>
</html>
